package com.example.comm.controller;


import com.example.comm.pojo.CarData;
import com.example.comm.pojo.WarnFlag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("warns")
public class WarnController {
    @GetMapping("/getFlag")
    public int getFlag() {
        WarnFlag warnFlag = WarnFlag.getInstance();
        return warnFlag.getFlag();
    }

}
